import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

import Home from '@/components/Login/MyHome.vue'
// import Login from '@/components/Login/MyLogin.vue'
import Login from '@/components/Login/Login.vue'

import firstlab from '@/components/menu/FirstLab.vue'
import secondlab from '@/components/menu/SecondLab.vue'
import thirdlab from '@/components/menu/ThirdLab.vue'
import meetingroom from '@/components/menu/MeetingRoom.vue'
import user from '@/components/menu/UserManager.vue'
import change from '@/components/menu/ChangePassword.vue'
const router = new VueRouter({
  routes:[
    { path:'/', redirect:'/login',meta:{ title:'信息工程学院创新工程中心'}},
    { path:'/login', component:Login,meta:{ title:'信息工程学院创新工程中心'}},
    { path:'/home', component: Home, redirect:'/home/firstlab',children:[
      { path: 'firstlab', component:firstlab },
      { path: 'secondlab', component:secondlab },
      { path: 'thirdlab', component:thirdlab },
      { path: 'meetingroom', component:meetingroom },
      { path: 'user', component:user },
      { path: 'change', component:change}
    ]}
  ]
})

export default router